<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html lang="zh-cn">
<head>
<!-- Meta, title, CSS, favicons, etc. -->
<meta charset="utf-8">
<title></title>
<%
	String path = request.getContextPath();
	// 获得本项目的地址(例如: http://localhost:8080/MyApp/)赋值给basePath变量 
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	// 将 "项目路径basePath" 放入pageContext中，待以后用EL表达式读出。 
	pageContext.setAttribute("basePath", basePath);
	//out.write(basePath);
%>
<!-- Bootstrap core CSS -->
<link href="<%=basePath%>bootstrap/css/bootstrap.min.css"
	rel="stylesheet">

<!-- Optional Bootstrap Theme -->
<link href="data:text/css;charset=utf-8,"
	data-href="<%=basePath%>bootstrap/css/bootstrap-theme.min.css"
	rel="stylesheet" id="bs-theme-stylesheet">

<!-- Documentation extras -->
<link href="<%=basePath%>bootstrap/css/docs.min.css" rel="stylesheet">
<!--[if lt IE 9]><script src="../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
<script src="<%=basePath%>bootstrap/js/ie-emulation-modes-warning.js"></script>

<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
  <script src="http://cdn.bootcss.com/html5shiv/3.7.0/html5shiv.js"></script>
  <script src="http://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->

<!-- Favicons -->
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
<link rel="icon" href="/favicon.ico">
</head>
<body>



	<table class="table table-striped">
		<thead>
			<tr>
				<th>#</th>
				<th>课程编号</th>
				<th>课程名称</th>
				<th>课程安排</th>
			</tr>
		</thead>
		<tbody>
			<c:forEach items="${sessionScope.teaSel}" var="stu" varStatus="st">
				<tr>
					<td>${st.index+1}</td>
					<td>${stu.courseid}</td>
					<td>${stu.coursename}</td>
					<td><a
						href="TeaSelCoSevelet?courseid=${stu.courseid}&coursename=${stu.coursename}&sel=2"><button
								type="button" class="btn btn-default">&nbsp;&nbsp;添&nbsp;&nbsp;&nbsp;加&nbsp;&nbsp;</button></a>
					</td>
				</tr>
			</c:forEach>
			<tr><th><hr><h3>已选：</h3><hr></th></tr>	
			<c:forEach items="${sessionScope.nowTeaCou}" var="stu" varStatus="st">
				<tr>
					<td>${st.index+1}</td>
					<td>${stu.courseid}</td>
					<td>${stu.coursename}</td>
					<td><a href="LastSevelet?uid=${stu.courseid}&las=1"><button type="button" class="btn btn-default" style="background: silver;">&nbsp;&nbsp;退&nbsp;&nbsp;&nbsp;选&nbsp;&nbsp;</button></a>
					</td>
				</tr>
			</c:forEach>
			</tbody>
		</table>





	<!-- Bootstrap core JavaScript
================================================== -->
	<!-- Placed at the end of the document so the pages load faster -->
	<script src="<%=basePath%>bootstrap/js/jquery.min.js"></script>


	<script src="<%=basePath%>bootstrap/js/bootstrap.min.js"></script>



	<script src="<%=basePath%>bootstrap/js/docs.min.js"></script>




	<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
	<script src="./../bootstrap/js/ie10-viewport-bug-workaround.js"></script>


</body>
</html>
